240
世界上有10种人,一种懂二进制,另一种不懂二进制。

Goland could not launch process: decoding dwarf section info at offset 0x0: too short 解决方案

1 前言

Goland版本:2018.1.5

Go:1.11.2

此版本调试不了bug,而且有时会显示could not launch process: decoding dwarf section info at offset 0x0: too short。第二个bug是会去解析字符串中大括号,例如(Get single todo: curl -g 'http://localhost:8080/graphql?query={todo(id:"b"){id,text,done}}'),导致编译不通过。

2 解决方案

升级到Goland 2及以上版本即可。

下载地址:https://www.jetbrains.com/go/download/#section=windows

3 旧方案

link:https://blog.csdn.net/woodcutter_man/article/details/83154788 

应该是Goland的dlv不是新版本导致不能debug。

解决:

1、更新dlv,go get -u github.com/derekparker/delve/cmd/dlv

2、修改Goland的配置,Help->Edit Custom Properties中增加新版dlv的路径配置:dlv.path=/path/go/bin/dlv

本人测试无效。

posted @ 2018-12-06 16:35  unionline  阅读(1282)  评论(0编辑  收藏  举报